package cn.sz.tm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sz.tm.dao.BookDao;
import cn.sz.tm.pojo.Book;
import cn.sz.tm.service.BookService;
@Service
public class BookServiceImpl implements BookService {

	@Autowired
	private BookDao bookDao;
	
	
	public List<Book> findBookSplit(Map<String, Object> map) {
		if(map==null) {
			return null;
		}
		return bookDao.findBookSplit(map);
	}

	public Integer getCount() {
		return bookDao.getCount();
	}

	public Book findBookByBookid(Integer bookid) {
		if(bookid==null) {
			return null;
		}
		return bookDao.findBookByBookid(bookid);
	}

	public void addBook(Book book) {
		if(book==null) {
			return;
		}
		bookDao.addBook(book);
	}

}
